import java.rmi.*;
import java.util.*;


public class TimeServiceRegistration {
	
	public static void main(String[] args) {
		
		try {
			System.out.println("Registering TimeService");
			TimeServiceImpl tsi = new TimeServiceImpl();
			Naming.rebind("TimeService", tsi);
			System.out.println(" Done.");
		} catch (Exception e) {
			System.err.println(e.toString());
			System.exit(1);
		}
	}
}